Optimal. Leaf size=27 \[ -\frac {(3 x+2) \tanh ^{-1}(3 x+1)}{\sqrt {-9 x^2-12 x-4}} \]
________________________________________________________________________________________
Rubi [B] time = 0.01, antiderivative size = 55, normalized size of antiderivative = 2.04, number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {646, 36, 31, 29} \begin {gather*} \frac {(3 x+2) \log (x)}{2 \sqrt {-9 x^2-12 x-4}}-\frac {(3 x+2) \log (3 x+2)}{2 \sqrt {-9 x^2-12 x-4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 646
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt {-4-12 x-9 x^2}} \, dx &=-\left (-\frac {(-6-9 x) \int \frac {1}{(-6-9 x) x} \, dx}{\sqrt {-4-12 x-9 x^2}}\right )\\ &=-\frac {(3 (-6-9 x)) \int \frac {1}{-6-9 x} \, dx}{2 \sqrt {-4-12 x-9 x^2}}+-\frac {(-6-9 x) \int \frac {1}{x} \, dx}{6 \sqrt {-4-12 x-9 x^2}}\\ &=\frac {(2+3 x) \log (x)}{2 \sqrt {-4-12 x-9 x^2}}-\frac {(2+3 x) \log (2+3 x)}{2 \sqrt {-4-12 x-9 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 33, normalized size = 1.22 \begin {gather*} \frac {(3 x+2) (\log (x)-\log (3 x+2))}{2 \sqrt {-(3 x+2)^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.12, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x \sqrt {-4-12 x-9 x^2}} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [C] time = 0.41, size = 11, normalized size = 0.41 \begin {gather*} \frac {1}{2} i \, \log \left (x + \frac {2}{3}\right ) - \frac {1}{2} i \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \mathit {undef} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 30, normalized size = 1.11 \begin {gather*} -\frac {\left (3 x +2\right ) \left (-\ln \relax (x )+\ln \left (3 x +2\right )\right )}{2 \sqrt {-\left (3 x +2\right )^{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 1.95, size = 24, normalized size = 0.89 \begin {gather*} -\frac {1}{2} i \, \left (-1\right )^{12 \, x + 8} \log \left (\frac {12 \, x}{{\left | x \right |}} + \frac {8}{{\left | x \right |}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.24, size = 27, normalized size = 1.00 \begin {gather*} \frac {\ln \left (\frac {6\,x+4-\sqrt {-{\left (3\,x+2\right )}^2}\,2{}\mathrm {i}}{x}\right )\,1{}\mathrm {i}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x \sqrt {- \left (3 x + 2\right )^{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________